package com.yl.common.domain.base.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @Description: 图表series对象 支持饼图、仪表图、环形图
 * @author: liangjian
 * @created: 2021年12月30日16:15:56
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "Echarts2SeriesVO", description = "图表series对象 支持饼图、仪表图、环形图")
public class Echarts2SeriesVO {

    public Echarts2SeriesVO(){
    }

    public Echarts2SeriesVO(String name, Object nameKey, BigDecimal value){
        this.name = name;
        this.nameKey = nameKey;
        this.value = value;
    }

    @ApiModelProperty(value="名称")
    @JsonProperty("name")
    private String name;

    @ApiModelProperty(value="名称标识")
    @JsonProperty("nameKey")
    private Object nameKey;

    @ApiModelProperty(value="值")
    @JsonProperty("value")
    private BigDecimal value;

}
